package com.xunji.standard.util;

import cn.hutool.crypto.digest.DigestUtil;
import org.apache.commons.lang3.StringUtils;

public class Md5Util {

    public static String encrypt(String str){

        if(StringUtils.isEmpty(str)){
            return "";
        }
        return DigestUtil.md5Hex(str);
    }

}
